|
|
|
|
|
|
|
For the Splash form, add the SUB MAIN routine as shown earlier. Also, you will need to change the Startup Object to SUB MAIN in the Project Properties dialog box. Now, run the application to see how these additions work. |
|
|
|
|
|
|
|
|
This next feature is not a form that you can add to the application; it is a control that is included in the Windows common control that comes with Visual Basic. The status bar provides a window, usually located at the bottom of a main form, that can display various types of status information. The StatusBar control can be divided into a maximum of 16 separate Panel objects that are contained in a Panels collection. This control enables you to use one of seven values for the Style property to automatically display common data such as the system date and time or the status of the following keyboard keys: |
|
|
|
|
|
|
|
|
The StatusBar control properties are set during design time in the control's property pages as shown in Figure 7.25. |
|
|
|
|
|
|
|
|
Figure 7.25.
The StatusBar control's property page is
used to set the initial Panel properties. |
|
|
|
|
|
|
|
|
This control is used to display pertinent information about whatever form or function is being performed at the moment. Add this control to the mdiMainForm and set the Align property to the bottom. Then set three panels, one for status text, date, and time. The data and time values will be updated by the control itself when your application is executing. To use the status bar to inform the user where he is, you can simply add two lines |
|
|
|
|
|